home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
sf102.zip
/
SF.DOC
< prev
next >
Wrap
Text File
|
1990-01-25
|
14KB
|
326 lines
╔════════════════════════════╗
║ SF - ShowFiles V1.2 ║
║ Copyright (C) 1989, 1990 ║
║ Irvine Data Systems ║
╚════════════════════════════╝
SF is a shareware product. As such, feel free to copy and
distribute it as often as you like provided that:
1) This document file and the SF executable are supplied
unaltered.
2) No fee is charged for duplication.
If you find this product to be useful and would like to become
a registered user, please send a $15 donation.
If you are using this product in a commercial or government
organization then a $15 donation is required. Site licenses and
distribution licenses are available, write for more information.
Michael Irvine
Irvine Data Systems
3225 Coquelin Terrace
Chevy Chase, MD 20815
(Make checks payable to Michael Irvine)
If you would like a customized version of this product, send a
description of the modifications you would like and your name,
address, and a telephone number to the address above. Or, call
(301) 593-1563 to discuss the modifications on the phone.
_________________________________________________________________
All SF options are toggled by specifying the command as a
parameter on the command line.
Syntax: SF [filemask] [options]
Filemask:
The filemask is a filename or list of filenames which may be or
contain wildcards. The first filename may have a drive and path
specified but subsequent filnames may not. Filenames in a list
should be separated by commas. SF (unlike DOS) will allow for up
to eight asterisks for a name and three for an extension. An
asterisk represents any string even a null string. The question
mark represents any character.
For Example:
SF *HI*.?
Would list all files with an 'HI' somewhere in the name that
have a one character extension.
SF D:\*.bat, *.exe, *.com
Would list all files which have a .bat, .exe, or a .com
extension.
Options:
When specifying options, the first option in each set of
options must be preceded by a '-' but following options need not
be. In addition, it does not matter if the filemask is placed
before or after or even between sets of options as long as a
space separates it from the options.
For example:
SF -HST D:\*.* -X[copy @ a:]RF
SF command options:
Command: Default:
-L On Generate a long listing which consists of a
file or directory name, a size, a date, a
time, and an attribute listing. In
addition, header and size totals are
displayed for each directory. This command,
when turned off, will toggle the following
options:
Header hisplay
File size display
Size totals
Last file modification time display
Directory names display
File path display
File attribute display
-H On Display a header for the directory which
consists of the path currently being
searched, and the filemask.
-S On Display the size of all files listed.
-T On Display the size totals for all of the
entries listed if a directory. At present
these are not rounded up to the disk's
cluster size.
-W On Display the date and time of last
modification for all files listed.
-N On Display directory names. Good for getting
directory listings without files or for
file listings without directory names.
-O On Display filenames. Good for getting file
listings without directory names or
directory listings without filenames.
-A On Display the attributes for each file
listed.
-F On Display filenames before displaying any
other information about the file. When
turned off, filenames are displayed after
any other information requested. This
results in a left justified listing.
-P Off For each file or directory listed, display
its full drive, path, and name.
-I Off Indent directory listings to reflect the
depth of the directory currently being
searched, relative to the directory the
search was started on.
-R Off Look through all of the directories that
are contained within the directory
currently being searched.
-X Off For each file in the listing, execute a
specified program or DOS command. The
command must be placed in square braces.
In addition, any of the following may be
placed in the command and will replaced at
execution time with information from the
file currently being listed as follows:
@ = drive:directory\name.ext
@p = drive:directory
@n = name
@e = .ext
@f = name.ext
For example:
SF -X[copy @ D:]
Would copy each file listed to the D:
drive.
-K On If the -X option is on, then query the user
before executing the specified command.
*** Note: It would be a good idea to leave
this option on if you wish to avoid data
loss while executing some commands.
-V None set Avoid a set of patterns. Where the set is
enclosed by square braces.
For example:
SF D:\*.* -X[*.bat, *.pas, *.asm]
Would list all files in the D:\ directory
that did not have the extentions of BAT,
PAS, or ASM.
-C None set Define a character to be any of a set of
other characters. Where the wild character
follows the -C on the command line and the
set of characters is enclosed in square
braces. Note: This is case sensitive.
For example:
SF D:\*.&&& -C&[BTA]
Would list all files in the D:\ directory
which have the extentions of : BTA, ATB,
TBA, BAT, ATB, TBA.
-D [ Set the character that acts as the left
brace to a new character. Where the new
left brace character follow the -D.
For example:
SF D:\*.* -D{E}C&{BTA}
Would allow for different characters to be
used for the braces in the example for the
-C command.
-E ] Set the character that acts as the right
brace to a new character. Where the new
right brace character follows the -E.
For example:
SF D:\*.* -D{E}C&{BTA}